home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / addpcx.zip / PCX.H < prev    next >
C/C++ Source or Header  |  1988-06-21  |  651b  |  42 lines

  1. /*    PCX   Header for PCX file gen. routines
  2.  
  3.     Based on ZSOFT technical reference manual 
  4.     from Shannon at ZSOFT, who asked to see a copy 
  5.     of this when it's done.
  6.     
  7.     ZSOFT corp.
  8.     1950 Spectrum Circle
  9.     Suite A-495
  10.     Marietta, GA 30067
  11.     (404) 428-0008
  12. */
  13.  
  14.  
  15. #include "vgr.h"
  16.  
  17.  
  18. typedef struct {
  19.    unsigned char red, green, blue;
  20. } TRIPLET;
  21.  
  22. typedef struct {
  23.    char maker,
  24.      version,
  25.     code,
  26.     bpp;
  27.    int    x1, y1, x2, y2,
  28.        hres, vres;
  29.    TRIPLET triple[16]; /* palette */
  30.    char vmode, 
  31.        nplanes;
  32.    int    bpl;
  33.    char __unused[128-68];
  34. } PCXHDR;
  35.  
  36. typedef struct {
  37.    PCXHDR hdr;
  38.    uchar **rows[4];
  39. } PCXPIC;
  40.  
  41.  
  42.